package com.nnxy.mapper;

import com.nnxy.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper   //mybatis的注解,给当前接口创建实现类加入到spring容器中
public interface  DeptMapper {


    @Select("select * from dept")
    List<Dept> findAll();

    void deleteById(Integer id);

    void insert(Dept dept);

    Dept findById(Integer id);

    void update(Dept dept);


}
